Scripting help

frnds... i am having a folder containing many files eg:

2011-10-08T0100_svir.jpg
2011-10-08T0200_svir.jpg
2011-10-08T0300_svir.jpg

2011-10-08T0100_svwv.jpg
2011-10-08T0200_svwv.jpg

i want to rename all files in the above said folder in the following format

201110080100_KVIR.jpg
201110080200_KVIR.jpg
201110080300_KVIR.jpg

201110080100_KVWV.jpg
201110080200_KVWV.jpg

I need to write a script for doing the above job... as i am having more than 250 files and i cannot do it mannuallly....
thanx in advance...

for starters
NB: remove the encapsulating echo wrapper when ready to do the deed .....

for f in *svir.jpg; do echo "mv $f $(echo $f | sed -e 's/svir/SVIR/' )"; done

for f in *svwv.jpg; do echo "mv $f $(echo $f | sed -e 's/svwv/SVWV/' )"; done

etcetera...

it doesn't worked at alll... but thanx...
i have solved it my own...